import service from '@/utils/request'

const SmokeApi = {
  // ---------------安全设备----------------
  addSmoke: function (data) {
    return service.post('smoke', data)
  },
  deleteSmoke: function (data) {
    return service.put('smoke/delete', data)
  },
  editSmoke: function (data) {
    return service.put('smoke', data)
  },
  listSmoke: function (data) {
    return service.get('smoke/page', {params: data })
  },
  getSmokeInfo: function (data) {
    return service.get('smoke', {params: data })
  },
  getAlarmLogList:function(data){
    return service.get("equipLog/AlarmLog/list",{params:data})
  },
  getAlarmLogPage:function(data){
    return service.get("equipLog/alarm/page",{params:data})
  }
}

export default SmokeApi
